package com.system.healthproject.service.imp;

import com.system.healthproject.mapper.CityMapper;
import com.system.healthproject.pojo.City;
import com.system.healthproject.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CityServiceImp implements CityService {

    @Autowired
    CityMapper cityMapper;


    @Override
    public boolean addCity(City city) {
        int insert = cityMapper.insert(city);
        return insert==1;
    }
}
